package vn.edu.saigontech.ncms.model.user;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.annotations.OptimisticLockType;

import vn.edu.saigontech.ncms.model.BaseEntity;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true, optimisticLock = OptimisticLockType.ALL)
@Table(name = "ncms_site")
@SuppressWarnings("serial")
public class Site extends BaseEntity {
	
	@Column(name = "name", unique = true, nullable = false)
    private String name;
	
	@Column(name = "page")
    private String page;
	
	@Column(name = "pattern")
	private String pattern;
	
	public String getName() { 
		return this.name; 
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getPattern() {
		return pattern;
	}

	public void setPattern(String pattern) {
		this.pattern = pattern;
	}
}